<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>按{$title}导出</h2>
	</div>
	<form action="" method="post" class="form-horizontal">
		<div class="form-item">
			<label class="item-label">请选择{$title}</label>
			<div class="controls">
				<switch name="type" >
					<case value="agent" >
						<select name="id">
							<volist name="list" id="vo">
								<option value="{$vo.uid}">{$vo.nickname}</option>
							</volist>
						</select>
					</case>
					<default />
						<select name="id">
							<volist name="list" id="vo">
								<option value="{$vo.id}">{$vo.title}</option>
							</volist>
						</select>
				</switch>

			</div>
			<input type="hidden" name="type" value="{$type}">
		</div>
		<div class="form-item">
			<a class="btn submit-btn" id="submit" href="javascript:" target-form="form-horizontal">确 定</a>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>

<block name="script">
	<script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('Volunteer/involuntary')}");
		$(function(){
			$("#submit").click(function(){
				location.href="/index.php/Admin/Volunteer/exportExcel?"+$("form").serialize();
			});
		})
	</script>
</block>
